WP_Defender\Component\Firewall B

Total Complexity 89
Dependencies 15
Dependents 7
Total lines 586
Lines of code 301
Logical lines of code 132
Comment lines 192
Methods 26
Properties 0

Methods 26

Method Rating Maintainability Complexity Lines of code
is_blocklisted_ip()
A
47 8 41
skip_priority_lockout_checks()
A
54 9 21
get_blocked_ip()
S
54 7 22
is_a_staff_access()
S
57 7 16
gather_ips()
S
49 5 33
maybe_show_misconfigured_ip_detection_option_notice()
S
61 6 12
is_cloudflare_request()
S
60 5 13
set_whitelist_server_public_ip()
S
58 4 16
auto_switch_ip_detection_option()
S
59 4 15
is_xff_notice_ready()
S
68 5 7
maybe_dismiss_cf_notice()
S
66 4 9
firewall_clean_up_lockout()
S
56 2 20
is_commencing_staff_access()
S
70 3 5
is_cf_notice_ready()
S
72 3 5
update_trusted_proxy_preset_ips()
S
67 2 8
update_cron_schedule_interval()
S
70 2 6
firewall_clean_up_temporary_ip_blocklist()
S
69 2 7
firewall_clean_up_logs()
S
63 2 10
get_whitelist_server_public_ip()
S
73 2 5
is_switched_ip_detection_notice()
S
79 1 3
is_authenticated_staff_access()
S
78 1 3
get_lockout_record_limit()
S
79 1 3
delete_slugs()
S
71 1 6
custom_http_headers()
S
71 1 7
trusted_proxy_presets()
S
73 1 5
is_whitelist_server_public_ip_enabled()
S
79 1 3